package user;

import book.Book;
import book.BookList;
import opera.IOperation;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 邓大帅
 * Date: 2024-01-11
 * Time: 11:13
 */
public abstract class User {
    protected String name;
    protected IOperation[] iOperations;
    public User(String name) {
        this.name = name;
    }
    public abstract int menu();
//设计的经验 多积累
    public void doWork(int choice, BookList bookList) {
        this.iOperations[choice].work(bookList);
    }
}
